package com.nstar.base.effects
{
	// myEffects/Rotation.as
   import mx.effects.TweenEffect;
   import mx.effects.EffectInstance;
   import mx.effects.IEffectInstance;

	/**
	 * 将背景色高亮的特效
	 * 
	 * @author 李嘉陵
	 * @date 2007.3.2
	 */
	public class HighLight extends TweenEffect
	{
		public var beginColor:uint = 0xfff7a0;
		public var endColor:uint = 0xcccccc;
		
		// Define constructor with optional argument.
       public function HighLight(targetObj:* = null) {
           super(targetObj);
           instanceClass= HighLightInstance;            
       }

       // Override getAffectedProperties() method to return "rotation".
       override public function getAffectedProperties():Array {
           return ["highLight"];
       }
    
       // Override initInstance() method.
       override protected function initInstance(inst:IEffectInstance):void {
           super.initInstance(inst);
           HighLightInstance(inst).beginColor = beginColor;
           HighLightInstance(inst).endColor = endColor;
       } 

	}
}